package com.wlz.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author： wlz
 * @Date 2020/10/28 10:59
 * @description： TODO
 * @version: 1.0
 */

@Component
public class Consumer {

    @RabbitListener(queues = "testQueue")
    public void get(String message) throws Exception{
        System.out.println(message);
    }
}
